package org.artifact.core.exception;
/**
 * @author : DengYing
 * @CreateDate : 2017年11月16日 上午10:23:55
 * @Description ：逻辑异常抽象类
 */
public abstract class AbstractArtifactException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 479488970657331599L;
	
	/**
	 * 错误码
	 */
	protected int code;
	
	public AbstractArtifactException() {
        super();
    }

    public AbstractArtifactException(String message) {
        super(message);
    }

    public AbstractArtifactException(String message, Throwable cause) {
        super(message, cause);
    }

    public AbstractArtifactException(Throwable cause) {
        super(cause);
    }

    protected AbstractArtifactException(String message, Throwable cause,boolean enableSuppression,boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
    
    public int getCode() {
		return code;
	}
}
